﻿using MoneyManagerNET.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Data.EntityClient;
using System.Data.Objects;

namespace TestModel
{
    
    
    /// <summary>
    ///This is a test class for ModelContainerTest and is intended
    ///to contain all ModelContainerTest Unit Tests
    ///</summary>
    [TestClass()]
    public class ModelContainerTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for ModelContainer Constructor
        ///</summary>
        [TestMethod()]
        public void ModelContainerConstructorTest()
        {
            EntityConnection connection = null; // TODO: Initialize to an appropriate value
            ModelContainer target = new ModelContainer(connection);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for ModelContainer Constructor
        ///</summary>
        [TestMethod()]
        public void ModelContainerConstructorTest1()
        {
            string connectionString = string.Empty; // TODO: Initialize to an appropriate value
            ModelContainer target = new ModelContainer(connectionString);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for ModelContainer Constructor
        ///</summary>
        [TestMethod()]
        public void ModelContainerConstructorTest2()
        {
            ModelContainer target = new ModelContainer();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for AddToAccountSet
        ///</summary>
        [TestMethod()]
        public void AddToAccountSetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            Account account = null; // TODO: Initialize to an appropriate value
            target.AddToAccountSet(account);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToCategorySet
        ///</summary>
        [TestMethod()]
        public void AddToCategorySetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            Category category = null; // TODO: Initialize to an appropriate value
            target.AddToCategorySet(category);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToContragentSet
        ///</summary>
        [TestMethod()]
        public void AddToContragentSetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            Contragent contragent = null; // TODO: Initialize to an appropriate value
            target.AddToContragentSet(contragent);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToSubCategorySet
        ///</summary>
        [TestMethod()]
        public void AddToSubCategorySetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            SubCategory subCategory = null; // TODO: Initialize to an appropriate value
            target.AddToSubCategorySet(subCategory);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddToTransactionSet
        ///</summary>
        [TestMethod()]
        public void AddToTransactionSetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            Transaction transaction = null; // TODO: Initialize to an appropriate value
            target.AddToTransactionSet(transaction);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AccountSet
        ///</summary>
        [TestMethod()]
        public void AccountSetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            ObjectSet<Account> actual;
            actual = target.AccountSet;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CategorySet
        ///</summary>
        [TestMethod()]
        public void CategorySetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            ObjectSet<Category> actual;
            actual = target.CategorySet;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ContragentSet
        ///</summary>
        [TestMethod()]
        public void ContragentSetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            ObjectSet<Contragent> actual;
            actual = target.ContragentSet;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SubCategorySet
        ///</summary>
        [TestMethod()]
        public void SubCategorySetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            ObjectSet<SubCategory> actual;
            actual = target.SubCategorySet;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for TransactionSet
        ///</summary>
        [TestMethod()]
        public void TransactionSetTest()
        {
            ModelContainer target = new ModelContainer(); // TODO: Initialize to an appropriate value
            ObjectSet<Transaction> actual;
            actual = target.TransactionSet;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
